package org.biodas.jdas.client;

import java.net.HttpURLConnection;

public abstract interface ConnectionPropertyProviderI {
	/**
	 * called by jDAS after HTTP connection is opened so client can set HTTP
	 * headers
	 * 
	 * @param paramHttpURLConnection
	 */
	public abstract void setConnectionProperties(
			HttpURLConnection paramHttpURLConnection);

	/**
	 * called by jDAS after DAS server has responded so client can check the
	 * HTTP headers. If the response does not contain the expected headers, the
	 * client should return true to indicate that the DAS request should be made
	 * again (so 'setConnectionProperties()' is called once more).
	 * 
	 * @param paramHttpURLConnection
	 * @return true if the DAS request needs to be made again.
	 */
	public abstract boolean getResponseProperties(
			HttpURLConnection paramHttpURLConnection);
}
